load("//bzl:cpp_unittest.bzl", "cpp_unittest")

cpp_unittest(
    name = "ssl_errors_test",
    srcs = ["SSLErrorsTest.cpp"],
    deps = [
        "//folly/io/async/ssl:ssl_errors",
        "//folly/portability:gtest",
        "//folly/portability:openssl",
    ],
)

cpp_unittest(
    name = "basic_transport_certificate_test",
    srcs = ["BasicTransportCertificateTest.cpp"],
    data = [
        "//folly/io/async/test/certs:tests-cert.pem",
    ],
    deps = [
        "//folly:file_util",
        "//folly/io/async/ssl:basic_transport_certificate",
        "//folly/portability:gtest",
        "//folly/ssl:openssl_cert_utils",
        "//folly/testing:test_util",
    ],
)

cpp_unittest(
    name = "openssl_utils_test",
    srcs = ["OpenSSLUtilsTest.cpp"],
    deps = [
        "//folly:string",
        "//folly/io/async/ssl:openssl_utils",
        "//folly/portability:gtest",
        "//folly/portability:openssl",
        "//folly/ssl:openssl_ptr_types",
    ],
)
